package com.fms.gui.templateCreator;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.JButton;
import javax.swing.JFrame;

public class OpenCreateTemplateFormButton extends JButton implements ActionListener
{
	private static final long	serialVersionUID	= -6289221645499593799L;
	private JFrame	toOpen;

	public OpenCreateTemplateFormButton(JFrame _toOpen)
	{
		this.setText("Create New FlowSheet");
		this.toOpen = _toOpen;
		this.addActionListener(this);
	}

	@Override
	public void actionPerformed(ActionEvent arg0)
	{
		toOpen.setVisible(true);		
	}

}
